package com.company.mvvm.repository;

import com.company.mvvm.api.WanAndroidApiInterface;
import com.company.mvvm.beans.ArticleBean;
import com.company.network.WanAndroidApi;
import com.company.network.bean.BaseResp;

import io.reactivex.Observable;

/**
 * 文章仓库
 */
public class ArticleRepository {

    public Observable<BaseResp<ArticleBean>> listArticle()
    {
        return WanAndroidApi.getService(WanAndroidApiInterface.class)
                .listArticle();
    }
}
